import request from 'src/utils/request'

//获取权限设置
export function getRolePermission(data) {
  return request({
    url: '/admin-role/permission',
    method: 'post',
    data
  })
}

//设置角色权限(保存)
export function saveRolePermission(data) {
  return request({
    url: '/admin-role/permission-save',
    method: 'post',
    data
  })
}

// 权限管理列表
export function permissionAdminList(data) {
  return request({
    url: '/admin-permission/index',
    method: 'post',
    data
  })
}

//获取未被添加的权限配置列表

export function noAddpermissionAdminList(data) {
  return request({
    url: '/admin-permission/create',
    method: 'post',
    data
  })
}

//删除(批量删除)权限
export function delPermission(data) {
  return request({
    url: '/admin-permission/delete',
    method: 'post',
    data
  })
}

//添加权限(保存)

export function savePermission(data) {
  return request({
    url: '/admin-permission/permission-save',
    method: 'post',
    data
  })
}





